package com.qf.ssm.service;

import com.github.pagehelper.PageInfo;
import com.qf.ssm.event.UpdateDevicesStatusEvent;
import com.qf.ssm.pojo.Devices;

public interface DevicesService {

    void addDevices(Devices devices);

    int deleteDevicesByIds(Long [] ids);

    void updateDevices(Devices devices);

    PageInfo<Devices> getAllDevices(int pageNum, int pageSize, String address, int status, int direction, int areaid,int categoryid);

    Devices getDevicesById(Long id);

    Devices getDevicesByUUId(String uuid);

    void sendCommand(String uuid, String command);

    void updateStatus(String uuid, String status);

    void onEvent(UpdateDevicesStatusEvent event);

    
}
